I made the same mistake as a previous post, and searching for an answer found this:
Error in memcpy
Code:
DWORD CodeItem;
memcpy(&CodeItem,szItemTrig,4);
I had the same errors:
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C2365: 'memcpy' : redefinition; previous definition was 'function'
c:\program files\microsoft visual studio 9.0\vc\include\string.h(53) : see declaration of 'memcpy'
error C2078: too many initializers
[solution]
The problem is trying to use memcpy to construct a global var in global space. To solve this move memcpy to a function, and call that function to get the global.